//
//  HMDiscoverTableViewController.swift
//  swift-新浪微博0
//
//  Created by 赵玉忠 on 16/8/29.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class HMDiscoverTableViewController: HMVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        if userLogin == false {
            visitorView.setVisitorViewInfo(imgName: "visitordiscover_image_message", message: "登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过")
            return
        }
       setupUI()
    }

    func setupUI()  {
        let searchView = HMDiscoverSearchView.searchView()
        searchView.frame = CGRect(x: 0, y: 0, width: UIScreen.main.bounds.size.width, height: 30)
        navigationItem.titleView = searchView
    }

}
